#pragma once


#include <string>
#include  <iostream>
using namespace std;

namespace inheritance{
	class Parent{
	public:
		string name;	
		Parent(){
			cout << "	create Parent()" << endl;
		}
		Parent(string& name){
			cout << "	create Parent(string name)" << endl;
			this->name = name;
		}
	};

	class Child : public Parent{
	public:
		Child(){
			cout << "	create Child()" << endl;
		}
		Child(string name) : Parent(name){
			cout << "	create Child(string name)" << endl;
		}
	};

}